package com.tang.controller;

import com.tang.sys.ResponseResult;
import com.tang.sys.service.IArticleService;
import com.tang.sys.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dashboard/user")
public class AdminUserInfoController {
    @Autowired
    private IUserService iUserService;
    @Autowired
    private IArticleService iArticleService;

    //获取信息
    @GetMapping("/AdminUserInfo")
    public ResponseResult UserInfo(){

        return iUserService.UserInfo();
    }

    @GetMapping("/getTotal")
    public ResponseResult getTotal(){

        return iArticleService.getTotal();
    }
}
